package com.tang.service;

import lombok.extern.slf4j.Slf4j;

/**
 * 请求类
 */
@Slf4j
public class Stock {

    private final String name = "ABC";
    private final int quantity = 10;

    public void buy() {
        log.info("Stock [Name: {}, Quantity: {}] bought", name, quantity);
    }

    public void sell() {
        log.info("Stock [Name: {}, Quantity: {}] sold", name, quantity);
    }

}
